
require("config")
require("framework.init")
--require('app.data.AnimationManager')

local MyApp = class("MyApp", cc.mvc.AppBase)

function MyApp:ctor()
    MyApp.super.ctor(self)
end

function MyApp:run()
    cc.FileUtils:getInstance():addSearchPath("res/")
    cc.FileUtils:getInstance():addSearchPath("res/audio")
    cc.SpriteFrameCache:getInstance():addSpriteFrames('xiaoxiao.plist')
    audio.preloadMusic('background.mp3')
    audio.preloadSound('bomb.mp3')
    audio.preloadSound('basketEffect.mp3')
    audio.preloadSound('destory1.mp3')
    audio.preloadSound('destory2.mp3')
    audio.preloadSound('destory3.mp3')
    audio.preloadSound('destoryWall.mp3')
    audio.preloadSound('horizontalEffect.mp3')
    audio.preloadSound('verticalEffect.mp3')
    audio.preloadSound('load.mp3') 
    audio.preloadSound('hint.mp3')
    audio.preloadSound('turn2.mp3')
    audio.preloadSound('turn1.mp3')
    audio.preloadSound('arim.mp3')

    self:enterScene("MainScene")
end

return MyApp
